Imports System
Imports System.Collections
Imports System.ComponentModel
Imports System.ComponentModel.Design
Imports System.Drawing
Imports System.Data
Imports System.Windows.Forms
Namespace GradientControls
  Friend Class ColorTrackBarDesigner
        Inherits System.Windows.Forms.Design.ControlDesigner
    Public Sub New()
    End Sub

    ' clean up some unnecessary properties
    Protected Overloads Overrides Sub PostFilterProperties(Properties As IDictionary)
      Properties.Remove("AllowDrop")
      Properties.Remove("BackgroundImage")
      Properties.Remove("ContextMenu")
      Properties.Remove("FlatStyle")
      Properties.Remove("Image")
      Properties.Remove("ImageAlign")
      Properties.Remove("ImageIndex")
      Properties.Remove("ImageList")
      Properties.Remove("Text")
      Properties.Remove("TextAlign")
      Properties.Remove("BackColor")
      Properties.Remove("Font")
      Properties.Remove("ForeColor")
      Properties.Remove("Cursor")
    End Sub
    Protected Overloads Overrides Sub PostFilterEvents(events As IDictionary)
      'actions
      events.Remove("Click")
      events.Remove("DoubleClick")
      'appearence
      events.Remove("Paint")
      'behavior
      events.Remove("ChangeUICues")
      events.Remove("ImeModeChanged")
      events.Remove("QueryAccessibilityHelp")
      events.Remove("StyleChanged")
      events.Remove("SystemColorsChanged")
      'Drag Drop
      events.Remove("DragDrop")
      events.Remove("DragEnter")
      events.Remove("DragLeave")
      events.Remove("DragOver")
      events.Remove("GiveFeedback")
      events.Remove("QueryContinueDrag")
      events.Remove("DragDrop")
      'layout
      events.Remove("Layout")
      events.Remove("Move")
      events.Remove("Resize")
      'PropertyChanged
      events.Remove("BackColorChanged")
      events.Remove("BackgroundImageChanged")
      events.Remove("BindingContextChanged")
      events.Remove("CausesValidationChanged")
      events.Remove("CursorChanged")
      events.Remove("FontChanged")
      events.Remove("ForeColorChanged")
      events.Remove("RightToLeftChanged")
      events.Remove("SizeChanged")
      events.Remove("TextChanged")

      MyBase.PostFilterEvents(events)
    End Sub

  End Class
End Namespace

